<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        function windowThis(){
            console.log(this);
            console.log(this.name);
        }
        //全局变量相当于window对象的属性
        var name = 'hello'
        // 相当于window.windowThis 谁来调用我 我就代表谁 这里的this指的是window
        windowThis();
    </script>
</body>
</html>